package star.cloud.asme.system.user;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import star.cloud.asme.base.mybatis.IBaseMapper;

import java.util.List;

@Mapper
//@CacheNamespace
public interface UserMapper extends IBaseMapper<User> {

    List<User> selectListByUsernameOrWorkNoOrEmailOrPhoneOrIdCard(User user);

    List<User> selectListByUsernameOrWorkNoOrEmail(User user);

    User selectOneByUsername(String username);

    List<String> selectMenuListByUserId(Long userId);

    List<String> selectPermissionListByUserId(Long userId);

    List<String> selectRoleNamesByUserId(Long userId);

    List<User> selectUserIdAndUserName();

}